package com.linkhub.oms.admin.modules.order.domain.param.employee;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @Description: EmployeeOrderApprovalParam
 * @Author: echo
 * @Date: 2024/4/14 10:06
 * @Version: 1.0
 */
@Data
@ApiModel("EmployeeOrderApprovalParam")
public class EmployeeOrderApprovalParam implements Serializable {

    @ApiModelProperty("菜单id：0-审核不通过；1-审核通过")
    @NotNull(message = "{validation.order.auditResult.notNull}")
    @Range(min = 0, max = 1, message = "{validation.order.auditResult.range}")
    private Integer auditResult;

    @ApiModelProperty(value = "员工拒审原因")
    @Length(max = 200, message = "{order.employee.refusalReason.length}")
    private String refusalReason;


    @ApiModelProperty("sysOrderIds")
    @NotEmpty(message = "{validation.order.sysOrderIds.notEmpty}")
    private List<String> sysOrderIds;

}
